package cn.dada.dadarecipes.community.article.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class Article {
    @ApiModelProperty(value = "文章id")
    Long id;
    @ApiModelProperty(value = "用户id")
    Long userId;
    @ApiModelProperty(value = "文章标题")
    String title;
    @ApiModelProperty(value = "文章摘要")
    String articleSummary;
    @ApiModelProperty(value = "图片")
    String imgUrl;
    @ApiModelProperty(value = "视频链接")
    String videoUrl;
    @ApiModelProperty(value = "标记地点")
    String position;
    @ApiModelProperty(value = "文章状态")
    String articleStatus;
    @ApiModelProperty(value = "总评数量")
    Integer comment;
    @ApiModelProperty(value = "点赞总数")
    Integer likesTotalNums;
    @ApiModelProperty(value = "浏览量")
    Integer skimNum;
    @ApiModelProperty(value = "审核状态")
    String auditStatus;
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    LocalDateTime updateTime;


    @ApiModelProperty(value = "用户id集合")
    List<Long> userIds;
    @ApiModelProperty(value = "发布文章的人")
    String username;
}